package com.yanqu.road.entity.wingroom;

/**
 * @author ：zfr
 * @date ：2022/1/19 15:12
 *  区域块
 */
public class RegionBlock {
    //x
    private int x;
    //y
    private int y;

    public RegionBlock() {
    }

    public RegionBlock(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        RegionBlock regionBlock = (RegionBlock) obj;
        return regionBlock.getX() == x && regionBlock.getY() == y;
    }
}
